<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
        <head>
                <link href="/stylesheets/framework.css" media="screen" rel="Stylesheet" type="text/css" />
                <%= javascript_include_tag "util" %>
        </head>
<BODY>
<div id="container">
<div id="main">
<h1>产品管理 - <span id="secondHeading">产品信息</span></h1>
<div id="input-form">
<TABLE border="0" id="INPUT_TABLE">
	<!--<TR>
		<TD   width="100">厂商：</TD>
		<TD class="b3"><%=@product.factory%></TD>
	</TR>-->
 	<TR>
		<TD  width="100">品名规格：</TD>
		<TD class="b3"><%=@product.serial%></TD>
            </TR>
	<TR>
		<TD  >导针规格：</TD>
		<TD class="b3"><%=@product.name%></TD>
	</TR>
        <!--
	<TR>
		<TD  >进货总数量：</TD>
		<TD class="b3"><%=@product.total_counts%></TD>
	</TR>
        -->
        <TR >
		<TD  >F（槽宽）：</TD>
                <TD class="b3"><%=@product.F%>（mm）</TD>
	</TR>
	<TR >
		<TD  >B（中径）：</TD>
                <TD class="b3"><%=@product.B%>（mm）</TD>
                </TR>
        <TR >
		<TD  >P（脚距）：</TD>
                <TD class="b3"><%=@product.P%>（mm）</TD>
                </TR>
	<TR>
		<TD  >入库数量：</TD>
		<TD class="b3"><%=@product.total_counts%>（kpcs）</TD>
	</TR>
	<TR>
		<TD  >入库日期：</TD>
		<TD class="b3"><%=@product.in_date_at%></TD>
	</TR>
        <TR>
		<TD  >单价：</TD>
		<TD class="b3"><%=@product.sale_price%> （元）</TD>
	</TR>
	<!--<TR>
		<TD  >代理价格：</TD>
		<TD class="b3"><%=@product.agent_price%> （元）</TD>
	</TR>
	<TR>
		<TD  >进货价格：</TD>
		<TD class="b3"><%=@product.in_price%> （元）</TD>
            </TR>
        <TR>
		<TD  >媒体价格：</TD>
		<TD class="b3"><%=@product.announce_price%> （元）</TD>
            </TR>-->
	<TR>
		<TD  >产品介绍：</TD>
		<TD class="b3"><%=@product.argument%></TD>
	</TR>
    <TR>
		<TD  >状态：</TD>
		<TD class="b3"><%if @product.state==0%><font color="red">已停用</font><%elsif @product.state==1%><font color="green">正常</font><%end%></TD>
	</TR>
	<TR>
	   <TD  >图片:</TD>
           <TD class="b3">
                   <%if @pp1%><a target="_blank" href="<%=url_for_file_column("pp1", "picture")%>"><img border="0" src="<%=url_for_file_column("pp1", "picture")%>" width="150" height="150"></a><%end%>
                   <%if @pp2%><a target="_blank" href="<%=url_for_file_column("pp2", "picture")%>"><img border="0" src="<%=url_for_file_column("pp2", "picture")%>" width="150" height="150"></a><%end%>
                   <%if @pp3%></br><a target="_blank" href="<%=url_for_file_column("pp3", "picture")%>"><img border="0" src="<%=url_for_file_column("pp3", "picture")%>" width="150" height="150"></a><%end%>
                   <%if @pp4%><a target="_blank" href="<%=url_for_file_column("pp4", "picture")%>"><img border="0" src="<%=url_for_file_column("pp4", "picture")%>" width="150" height="150"></a><%end%>
                   <%if @pp5%></br><a target="_blank" href="<%=url_for_file_column("pp5", "picture")%>"><img border="0" src="<%=url_for_file_column("pp5", "picture")%>" width="150" height="150"></a><%end%>
                   <%if @pp6%><a target="_blank" href="<%=url_for_file_column("pp6", "picture")%>"><img border="0" src="<%=url_for_file_column("pp6", "picture")%>" width="150" height="150"></a><%end%></TD>
	</TR>
	<TR>
		<TD  >备注：</TD>
		<TD class="b3"><%=@product.memo%></TD>
	</TR>
</table>
<p align="right"><input type="button" value="打印当前页" class="sub" onclick="openPrintWindow('INPUT_TABLE')"/></p>
</div>
</div>
</div>
</BODY>
</HTML>
